//package org.assertj.ohos.api.app;
//
//import ohos.annotation.TargetApi;
//import ohos.app.FragmentManager;
//import org.assertj.core.api.AbstractAssert;
//
//import static ohos.os.Build.VERSION_CODES.HONEYCOMB;
//import static org.assertj.core.api.Assertions.assertThat;
//
///** Assertions for {@link FragmentManager} instances. */
//@TargetApi(HONEYCOMB)
//public class FragmentManagerAssert extends AbstractAssert<FragmentManagerAssert, FragmentManager> {
//  public FragmentManagerAssert(FragmentManager actual) {
//    super(actual, FragmentManagerAssert.class);
//  }
//
//  public FragmentManagerAssert hasFragmentWithId(int id) {
//    isNotNull();
//    assertThat(actual.findFragmentById(id)) //
//        .overridingErrorMessage("Expected fragment with ID <%s> but was not found.", id) //
//        .isNotNull();
//    return this;
//  }
//
//  public FragmentManagerAssert hasFragmentWithTag(String tag) {
//    isNotNull();
//    assertThat(actual.findFragmentByTag(tag)) //
//        .overridingErrorMessage("Expected fragment with tag <%s> but was not found.", tag) //
//        .isNotNull();
//    return this;
//  }
//
//  public FragmentManagerAssert hasBackStackEntryCount(int count) {
//    isNotNull();
//    int actualCount = actual.getBackStackEntryCount();
//    assertThat(actualCount) //
//        .overridingErrorMessage("Expected back stack entry count <%s> but was <%s>.", count,
//            actualCount) //
//        .isEqualTo(count);
//    return this;
//  }
//
//  public FragmentManagerAssert doesNotHaveFragmentWithId(int id) {
//    isNotNull();
//    assertThat(actual.findFragmentById(id))
//        .overridingErrorMessage("Expected fragment with ID <%s> not to be present but was.", id)
//        .isNull();
//    return this;
//  }
//
//  public FragmentManagerAssert doesNotHaveFragmentWithTag(String tag) {
//    isNotNull();
//    assertThat(actual.findFragmentByTag(tag))
//        .overridingErrorMessage("Expected fragment with tag <%s> not to be present but was.", tag)
//        .isNull();
//    return this;
//  }
//}
